﻿using Core.DBClasses;
using Core.WebScaner;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Utils;

namespace Infrastructure.Managers
{
    public class SystemSettingsManager : BaseManager
    {
        public IEnumerable<DBChangesAudit> GetDBChangesAudit()
        {
            var dbChangesAudit = GetAllDBChangesAudit();
            return dbChangesAudit;
        }

        public IEnumerable<IWebRequestProperties> GetBadLinks(Uri uri)
        {
            return _webCrawler.DetectBrokenLinks(uri);
        }

        private IEnumerable<DBChangesAudit> GetAllDBChangesAudit()
        {
            return _dbContext.Get<DBChangesAudit>();
        }
    }
}
